var events = [1,2,3,4,5,6,7]
var odds = events.map(v=>v+1)
console.log('odds',odds)

var nums = events.map((v,i)=>v+i)
console.log('nums',nums)

var fives = []

nums.forEach(v=>{
	if(v % 5 === 0){
		fives.push(v)
	}
})

console.log('fives',fives)


var bob = {
	_name: "Bob",
	_friends: [],
	printFriends() {
		this._friends.forEach(f=>{
			console.log(this._name + 'knows' + f)
		})
	}
}

function square() {
	let example = () => {
		let numbers = []
		for (let number of arguments){
			numbers.push(number * number)
		}
		return numbers
	}

	return example();
}

var numbers = square(2,4,7.5,8,11.5,21)

console.log(numbers)